package ouhenry.stage.manage.dao;

import org.apache.ibatis.annotations.Param;

import ouhenry.stage.manage.entity.User;

public interface UserDao {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

//    @Cacheable(value="user", key="#p0")
    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User loginVerify(@Param("userName")String userName, @Param("password")String password);
}